package blog.service;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import blog.entity.Menu;
import blog.mapper.MenuMapper;

/**
 * 菜单
 */
@Service
public class MenuServiceImpl implements MenuService {
    @Resource
    private MenuMapper menuMapper;

    /**
     * 查所有菜单
     */
    @Override
    public List<Menu> listMenu() {
        List<Menu> menuList = menuMapper.listMenu();
        return menuList;
    }

}
